package day003;

public class ForTest05 {
    public static void main(String[] args) {
        int cnt = 0;
        for (int i = 100; i < 1000; i++) {
            int ge = i % 10;
            int shi = i / 10 % 10;
            int bai = i / 100;
            if (ge * ge * ge + shi * shi * shi + bai * bai * bai == i) {
                cnt++;
            }
        }

        System.out.println("水仙花个数为：" + cnt);
    }
}
